@extends('admin.layouts.master')
@section('content')
    <table class="mdui-table mdui-table-hoverable">
        <thead>
        <tr>
            <th>ID</th>
            <th>角色标示</th>
            <th>角色名称</th>
            <th>角色描述</th>
            <th>角色拥有的权限</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        @foreach($roles as $role)
            <tr>
                <td scope="row">{{$role->id}}</td>
                <td>{{$role->name}}</td>
                <td>{{$role->display_name}}</td>
                <td>
                    {{$role->description}}
                </td>

                <td>{{$role->dname}}</td>
                <td>
                    <a href="{{url('/admin/admin_role/edit',['id'=>$role->id])}}"
                       class="mdui-btn mdui-btn-dense mdui-color-blue mdui-ripple">修改</a>
                    {{--删除--}}
                    <a href="{{url('/admin/admin_role/destroy',['id'=>$role->id])}}"
                       class="mdui-btn mdui-btn-dense mdui-color-blue mdui-ripple"
                       onclick="if(confirm('确定删除吗?')==false) return false;">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>
    </table>
@endsection
